package pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Objects;
@TableName("category")
@Data
public class Category {
    @TableId
    private Long cId;

    private String cName;

    private Boolean cStatus;

    private Timestamp cCreateTime;

    private Timestamp cUpdateTime;
   
    private String cCreateUser;
 
    private String cUpdateUser;
    @TableLogic
    private Boolean cDelflag;

    public Long getcId() {
        return cId;
    }

    public void setcId(Long cId) {
        this.cId = cId;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public Boolean getcStatus() {
        return cStatus;
    }

    public void setcStatus(Boolean cStatus) {
        this.cStatus = cStatus;
    }

    public Timestamp getcCreateTime() {
        return cCreateTime;
    }

    public void setcCreateTime(Timestamp cCreateTime) {
        this.cCreateTime = cCreateTime;
    }

    public Timestamp getcUpdateTime() {
        return cUpdateTime;
    }

    public void setcUpdateTime(Timestamp cUpdateTime) {
        this.cUpdateTime = cUpdateTime;
    }

    public String getcCreateUser() {
        return cCreateUser;
    }

    public void setcCreateUser(String cCreateUser) {
        this.cCreateUser = cCreateUser;
    }

    public String getcUpdateUser() {
        return cUpdateUser;
    }

    public void setcUpdateUser(String cUpdateUser) {
        this.cUpdateUser = cUpdateUser;
    }

    public Boolean getcDelflag() {
        return cDelflag;
    }

    public void setcDelflag(Boolean cDelflag) {
        this.cDelflag = cDelflag;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Category category = (Category) o;
        return cId == category.cId && Objects.equals(cName, category.cName) && Objects.equals(cStatus, category.cStatus) && Objects.equals(cCreateTime, category.cCreateTime) && Objects.equals(cUpdateTime, category.cUpdateTime) && Objects.equals(cCreateUser, category.cCreateUser) && Objects.equals(cUpdateUser, category.cUpdateUser) && Objects.equals(cDelflag, category.cDelflag);
    }

    @Override
    public int hashCode() {
        return Objects.hash(cId, cName, cStatus, cCreateTime, cUpdateTime, cCreateUser, cUpdateUser, cDelflag);
    }
}
